using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace SysTables
{
    public partial class AddDatabaseForm : Form
    {

        private MainWindow mParent;


	
        public AddDatabaseForm(MainWindow parent)
        {
            InitializeComponent();
            mParent = parent;
        }

        public void AddDatabase()
        {
            mDatabaseName.Text = "";
            ShowDialog();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            mParent.AddDatabase(mDatabaseName.Text);
            Visible = false;
        }

        private void Cancel_Click(object sender, EventArgs e)
        {
            Visible = false;
        }
    }
}